package com.example.web.api;

import com.example.web.pojo.ProcessUserVo;
import com.example.web.service.TestSend;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class Api {

    @Resource
    private TestSend testSend;

    /**
     * 模拟业务发送消息
     */
    @GetMapping("send")
    public String send(String str) {
        ProcessUserVo vo = new ProcessUserVo();
        vo.setUserName(str);
        vo.setUserNo(str);
        testSend.sendMsg(vo);
        return "ok";
    }
}
